package com.mobile.persistent.base;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import com.mobile.common.base.model.BaseEntity;

@MappedSuperclass
public abstract class MySqlEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Date createTime;
	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="createTime", columnDefinition="datetime")
	public Date getCreateDate() {
		return createTime;
	}
	public void setCreateDate(Date createDate) {
		this.createTime = createDate;
	}

}
